import request from '@/utils/request'
import $qs from 'qs'

export function wechatIndex(params) {
  return request({
    url: '/wechatIndex',
    method: 'post',
    data: $qs.stringify(params)
  })
}

export function channelSave(params) {
  return request({
    url: '/channelSave',
    method: 'post',
    data: $qs.stringify(params)
  })
}

export function wechatSetedit(params) {
  return request({
    url: '/wechatSetedit',
    method: 'post',
    data: $qs.stringify(params)
  })
}

export function h5Switch(params) {
  return request({
    url: '/h5Switch',
    method: 'post',
    data: $qs.stringify(params)
  })
}

export function h5Index(params) {
  return request({
    url: '/h5Index',
    method: 'post',
    data: $qs.stringify(params)
  })
}

export function wxappIndex(params) {
  return request({
    url: '/wxappIndex',
    method: 'post',
    data: $qs.stringify(params)
  })
}

export function channelGet(params) {
  return request({
    url: '/channelGet',
    method: 'post',
    data: $qs.stringify(params)
  })
}

export function h5SeeSwitch(params) {
  return request({
    url: '/h5SeeSwitch',
    method: 'post',
    data: $qs.stringify(params)
  })
}

export function setWxAppIdInfo(params) {
  return request({
    url: '/setWxAppIdInfo',
    method: 'post',
    data: $qs.stringify(params)
  })
}

export function getWxAppIdInfo(params) {
  return request({
    url: '/getWxAppIdInfo',
    method: 'post',
    data: $qs.stringify(params)
  })
}

export function uploadWxAppLogin(params) {
  return request({
    url: '/uploadWxAppLogin',
    method: 'post',
    data: $qs.stringify(params)
  })
}

export function uploadWxAppGetLoginInfo(params) {
  return request({
    url: '/uploadWxAppGetLoginInfo',
    method: 'post',
    data: $qs.stringify(params)
  })
}

export function uploadWxAppCode(params) {
  return request({
    url: '/uploadWxAppCode',
    method: 'post',
    data: $qs.stringify(params)
  })
}
export function getPreviewQrCode(params) {
  return request({
    url: '/getPreviewQrCode',
    method: 'post',
    data: $qs.stringify(params)
  })
}
export function getEditionInfo(params) {
  return request({
    url: '/getEditionInfo',
    method: 'post',
    data: $qs.stringify(params)
  })
}
export function getChannel(params) {
  return request({
    url: '/getChannel',
    method: 'post',
    data: $qs.stringify(params)
  })
}
export function channelGetAll(params) {
  return request({
    url: '/channelGetAll',
    method: 'post',
    data: $qs.stringify(params)
  })
}

export function getMaterialList(params) {
  return request({
    url: `/getMaterialList`,
    method: 'post',
    data: $qs.stringify(params)
  })
}

export function addReply(params) {
  return request({
    url: `/addReply`,
    method: 'post',
    data: $qs.stringify(params)
  })
}

export function addWechatMenu(params) {
  return request({
    url: `/addWechatMenu`,
    method: 'post',
    data: $qs.stringify(params)
  })
}

export function addMaterialNews(params) {
  return request({
    url: `/addMaterialNews`,
    method: 'post',
    data: $qs.stringify(params)
  })
}

export function getMaterial(params) {
  return request({
    url: `/getMaterial`,
    method: 'post',
    data: $qs.stringify(params)
  })
}

export function upload2WechatByFileID(params) {
  return request({
    url: `/upload2WechatByFileID`,
    method: 'post',
    data: $qs.stringify(params)
  })
}

export function deleteMaterial(params) {
  return request({
    url: `/deleteMaterial`,
    method: 'post',
    data: $qs.stringify(params)
  })
}

export function syncMaterial(params) {
  return request({
    url: `/syncMaterial`,
    method: 'post',
    data: $qs.stringify(params)
  })
}

export function getReplys(params) {
  return request({
    url: `/getReplys`,
    method: 'post',
    data: $qs.stringify(params)
  })
}

export function getReplyDetail(params) {
  return request({
    url: `/getReplyDetail`,
    method: 'post',
    data: $qs.stringify(params)
  })
}

export function deleteReply(params) {
  return request({
    url: `/deleteReply`,
    method: 'post',
    data: $qs.stringify(params)
  })
}

export function statusReply(params) {
  return request({
    url: `/statusReply`,
    method: 'post',
    data: $qs.stringify(params)
  })
}

export function getMenuList(params) {
  return request({
    url: '/getMenuList',
    method: 'post',
    data: $qs.stringify(params)
  })
}
export function menuDelete(params) {
  return request({
    url: '/menuDelete',
    method: 'post',
    data: $qs.stringify(params)
  })
}
export function menuDetail(params) {
  return request({
    url: '/menuDetail',
    method: 'post',
    data: $qs.stringify(params)
  })
}
export function uploadMenu2Wechat(params) {
  return request({
    url: '/uploadMenu2Wechat',
    method: 'post',
    data: $qs.stringify(params)
  })
}
export function weChatAppletsUploadImg(params) {
  return request({
    url: '/weChatAppletsUploadImg',
    method: 'post',
    data: $qs.stringify(params)
  })
}
export function weChatAppletsUpload(params) {
  return request({
    url: '/weChatAppletsUpload',
    method: 'post',
    data: $qs.stringify(params)
  })
}


